import Cookies from 'js-cookie'

const LOGIN_STATUS = 'LOGIN_STATUS'
const LOGIN_ROLE = 'LOGIN_ROLE'
const LOGIN_NAME = 'LOGIN_NAME'

export function getLoginStatus() {
  return Cookies.get(LOGIN_STATUS)
}

export function setLoginStatus(loginStatus) {
  return Cookies.set(LOGIN_STATUS, loginStatus)
}

export function removeLoginStatus() {
  return Cookies.remove(LOGIN_STATUS)
}

export function getLoginRole() {
    return Cookies.get(LOGIN_ROLE)
}

export function setLoginRole(loginRole) {
    return Cookies.set(LOGIN_ROLE, loginRole)
}

export function removeLoginRole() {
    return Cookies.remove(LOGIN_ROLE)
}

export function getLoginName() {
    return Cookies.get(LOGIN_NAME)
}

export function setLoginName(loginName) {
    return Cookies.set(LOGIN_NAME, loginName)
}

export function removeLoginName() {
    return Cookies.remove(LOGIN_NAME)
}